body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    color: #e74c3c;
    font-size: 24px;
}

.btn {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
}

.btn-logout:hover {
    background-color: #c0392b;
}

/* 管理员布局 */
.admin-sidebar {
    width: 200px;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-right: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
}

.admin-sidebar li {
    margin-bottom: 10px;
}

.admin-sidebar a {
    text-decoration: none;
    color: #333;
    padding: 10px;
    border-radius: 4px;
    display: block;
    transition: background-color 0.3s;
}

.admin-sidebar a:hover, .admin-sidebar a.active {
    background-color: #f1f1f1;
    color: #e74c3c;
}

.admin-content {
    flex: 1;
}

.admin-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.admin-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.product-actions {
    margin-bottom: 20px;
}

.btn-add {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-add:hover {
    background-color: #27ae60;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card h3 {
    margin: 10px 0;
}

.product-card p {
    margin: 5px 0;
}

.product-actions-btn {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.view-details {
    background-color: transparent;
    border: none;
    color: #3498db;
    cursor: pointer;
    text-decoration: none;
}

.edit-btn, .delete-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.edit-btn {
    color: #e74c3c;
}

.delete-btn {
    color: #3498db;
}

.message-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.message-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: box-shadow 0.3s;
}

.message-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.message-card h3 {
    margin: 10px 0;
}

.message-card p {
    margin: 5px 0;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 50%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.btn-save {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

.btn-save:hover {
    background-color: #27ae60;
}

.hidden {
    display: none !important;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}